﻿<%@ Page Title="" Language="C#" 
MasterPageFile="~/Views/Shared/Site.Master" 
Inherits="System.Web.Mvc.ViewPage<IEnumerable<AplicacionMVC.ClienteWS.Cliente>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Lista de Clientes
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Index</h2>

    <table>
        <tr>
            <th>
                txtClienteApellido
            </th>
            <th>
                txtClienteNombre
            </th>
             <th>
                Documento
            </th>
            <th></th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: item.txtClienteApellido %>
            </td>
            <td>
                <%: item.txtClienteNombre %>
            </td>
             <td>
                <%: item.NumDocumento %>
            </td>
            <td>
                <%: Html.ActionLink("Editar", "Edit", new {  id=item.idCliente  }) %> |
                <%: Html.ActionLink("Detalle", "Details", new { id = item.idCliente })%> |
                <%: Html.ActionLink("Eliminar", "Delete", new { id = item.idCliente })%>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Create New", "Create") %>
    </p>

</asp:Content>

